<template>
  <div class="header">
    <div class="header-left"><span class="iconfont">&#xe624;</span></div>
    <div class="header-input"><span class="iconfont">&#xe632;&nbsp;</span>请输入景点/城市/等其他</div>
    <router-link to="/city">
    <div class="header-right">{{city}}<span class="iconfont icon-xiala">&#xe600;</span></div>
    </router-link>
  </div>
</template>

<script>
export default {
  name: 'HomeHeader',
  props: {
    city: String
  }
}
// 在样式中引入外部文件  需要加~
</script>
<style lang="stylus" scoped>
  @import '~styles/varibles.styl'
  .header
    display: flex
    height: .86rem
    line-height: .86rem
    background-color: $bgColor
    text-align: center
    color: #ffffff
    .header-left
      width: .64rem
      float: left
    .header-input
      flex: 1
      background-color :#ffffff
      height: .62rem
      line-height:.62rem
      border-radius :.1rem
      margin :.12rem .12rem
      text-align: left
      text-indent: .2rem
      color: #cccccc
      letter-spacing :0.02rem
    .header-right
      width: 1.24rem
      float: right
      color: #ffffff
      .icon-xiala
        font-size :0.25rem;
</style>
